<script src="/js/galleria-1.2.2.js"></script>
<div class="act">
	<? $this->widget('zii.widgets.CBreadcrumbs', array(
		'links'=>$this->bread,
		'htmlOptions'=>array('class'=>'act_str'),
		'separator'=>' &gt; '
	)); ?>
	<div class="act_title"><?=$album->title?>
		<span style="display: block"><?=$album->body?></span>
		<p><?= Yii::app()->dateFormatter->format('d MMMM yyyy', $album->date); ?> <span><?=count($album->galleryImgs)?> фотографий</span></p>
	</div>
	<div class="content_photo">
		<div class="photo_name"></div>
		<div id="galleria">
		</div>
		<script>
			var images = [
				<? foreach($album->galleryImgs as $img): ?>
				    {
					image: '<?=$img->img?>',
					thumb: '<?=$img->img?>',
					title: '<?=$img->title?>'
					},
				<? endforeach; ?>
			];
			// Load the classic theme
			Galleria.loadTheme('\/js\/galleria.classic.js');

			// Initialize Galleria
			$('#galleria').galleria({
				data_source: images
			});

		</script>
	</div>
	<div class="clear"></div>
	<div class="photo_back">&lt; <a href="<?= CHtml::normalizeUrl(array('site/gallery')) ?>">Вернуться к списку альбомов</a></div>


	<!--/Акции--->
</div>